let app = getApp()
Component({
    properties: {
          img_id:Number
      },
      data:{
        item: {
          class_ids: 0,
          data_type: "auto",
          id: "images-list-auto",
          num: 20,
          order: "create_time",
          showtitle: !0,
          sort: "desc",
          css: {
              "images-list-auto": "background-color:rgba(255, 255, 255, 1.0);background:rgba(255, 255, 255, 1.0);",
              "images-list-auto .group_item": "border-top:1px solid rgba(241, 241, 241, 1.0);border-right:1px solid rgba(241, 241, 241, 1.0);border-bottom:1px solid rgba(241, 241, 241, 1.0);border-left:1px solid rgba(241, 241, 241, 1.0);background-color:rgba(255, 255, 255, 1.0);background:rgba(255, 255, 255, 1.0);border-radius:4px 4px 4px 4px;box-shadow:0px 2px 12px rgba(0, 0, 0,0.10);padding:0px;",
              "images-list-auto .group_title": "font-family:Arial;font-size:13.00px;color:#333;font-weight:400;font-style:normal;text-decoration:unset;text-align:center;",
              "images-list-auto .item_image": "height:110.00px;"
          },
          animation: {},
          list: []
      },
      },
    lifetimes: {
        attached: function () {
          var that = this;
          var id=this.data.img_id
          wx.request({
            url: app.globalData.siteroot,
             data: {
               do:'List_Data',
               type:'images',
               num:20,
               class_ids:id,
               sort: 'desc',
               order: 'create_time',
               ids: '',
               data_type:'auto',
               page:1,
               user_id:wx.getStorageSync('user_id')
            },
           success: function(res) {
               var item=that.data.item;
               item.list=res.data.info
               that.setData({
                  item:item
               })
           }
          })
       }
      },
    methods: {
    }
});
